<template>
<!-- 办事指南 -->
  <div>
    <!-- 顶部导航栏 --> 
    <van-nav-bar title="其他"  left-arrow @click-left="$router.go(-1)"/>
      <!-- 通知 -->
        <van-cell v-for="item in matterslist" :key="item.id">
          <van-cell class="matters" :title="item.mattersTitle" is-link  @click="feedback(item.path,item.id)"/>
        </van-cell>
  </div>
</template>
<style scoped>
  @import '../../../../assets/css/community/listIntroduction/guide.css'; 
</style>
 <script>
 import apiHttp from '../../../../api/index'
   export default {
     data(){
       return{
         link:'',
          matterslist:[
            {
              id:"1",
              mattersTitle:"关于我们"
            },
            {
              id:"2",
              mattersTitle:"帮助反馈"
            },
            {
              id:"3",
              mattersTitle:"问卷调查"
            }
          ]
       }
     },
     mounted(){
       this.getAskStar()
    },
    methods:{
      // 通知
      feedback(e,id){ //  轮播图点击
          if(id == 1){
            this.$router.push({path:"./aboutUs",query: { id: id}});
          }else if(id == 2){
            this.$router.push({path:"./feedback",query: { id: id}});
          }else if(id == 3){
            window.location.href = this.link
          }
      },
      // 问卷调查
      getAskStar(){
        apiHttp.comIndex.getAskStar('',resp=>{
          if(resp.resultCode == '000000'){
            this.link = resp.data.ask.content
          }else{
            Toast(resp.resultMsg)
          }
        })
      }
    }
   }
 </script>
